package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbFleetCost;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbFleetCost is a Querydsl query type for ETbFleetCost
 */
@Label("TbFleetCost查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbFleetCost extends RelationalPathBase<ETbFleetCost> {

    private static final long serialVersionUID = -319424732;

    public static final QTbFleetCost tbFleetCost = new QTbFleetCost("tb_fleet_cost");

    public class PrimaryKeys {

        public final PrimaryKey<ETbFleetCost> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ETbFleetOrder> fleetOrdersFk = createForeignKey(baseFleetOrderId, "id");

    }

    public final StringPath baseFleetOrderId = createString("baseFleetOrderId");

    public final StringPath calculateCount = createString("calculateCount");

    public final StringPath contactCompany = createString("contactCompany");

    public final StringPath costCode = createString("costCode");

    public final StringPath costName = createString("costName");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath money = createString("money");

    public final NumberPath<Integer> quantity = createNumber("quantity", Integer.class);

    public final StringPath sort = createString("sort");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbFleetCost(String variable) {
        super(ETbFleetCost.class, forVariable(variable), "null", "tb_fleet_cost");
        addMetadata();
    }

    public QTbFleetCost(String variable, String schema, String table) {
        super(ETbFleetCost.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbFleetCost(Path<? extends ETbFleetCost> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_fleet_cost");
        addMetadata();
    }

    public QTbFleetCost(PathMetadata<?> metadata) {
        super(ETbFleetCost.class, metadata, "null", "tb_fleet_cost");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(baseFleetOrderId, ColumnMetadata.named("base_fleet_order_id").withIndex(3).ofType(Types.CHAR).withSize(24));
        addMetadata(calculateCount, ColumnMetadata.named("calculateCount").withIndex(7).ofType(Types.VARCHAR).withSize(100));
        addMetadata(contactCompany, ColumnMetadata.named("contactCompany").withIndex(4).ofType(Types.VARCHAR).withSize(100));
        addMetadata(costCode, ColumnMetadata.named("costCode").withIndex(5).ofType(Types.VARCHAR).withSize(50));
        addMetadata(costName, ColumnMetadata.named("costName").withIndex(6).ofType(Types.VARCHAR).withSize(100));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(10).ofType(Types.VARCHAR).withSize(255));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(money, ColumnMetadata.named("money").withIndex(9).ofType(Types.VARCHAR).withSize(20));
        addMetadata(quantity, ColumnMetadata.named("quantity").withIndex(8).ofType(Types.INTEGER).withSize(10));
        addMetadata(sort, ColumnMetadata.named("sort").withIndex(2).ofType(Types.VARCHAR).withSize(100));
    }

}

